import re
import os

#Add the path for the folder with minutes
folder='/Users/'

personal_votes=0
voice_votes=0
party_votes=0


for minute in os.listdir(folder):
	file=folder+minute
	minute_text=open(file).read()
	voice_votes+=len(re.findall('say Aye, to the contrary, No',minute_text))
	personal_votes+=len(re.findall('personal vote was called for',minute_text))
	party_votes+=len(re.findall('party vote was called for',minute_text))
	
	
